<%@page language="java" contentType="text/html; charset=UTF-8" %>
<%@page import="btsm.bean.sqlwork"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<%
        sqlwork mypage = new sqlwork("users", "");
%>
<%String titlename="新建用户";%>
<HTML>
<HEAD>
    <TITLE><%=titlename%></TITLE>
    <META http-equiv=Content-Type content="text/html; charset=UTF-8">
    <LINK href="Admin_Style.css" type=text/css rel=stylesheet>
	<script type='text/javascript' src='/btsm/dwr/interface/JSystemWeb.js'></script>
	<script type='text/javascript' src='/btsm/dwr/engine.js'></script>
	<script type='text/javascript' src='/btsm/dwr/util.js'></script>
</HEAD>

<BODY leftMargin="2" topMargin="0" marginheight="0" marginwidth="0" style="overflow:hidden">

<script language="javascript" src="jscheck.js">
</script>
<script>
    <!--
    function tst(obj0,obj1,obj2){
        obj0.style.border="1 "+obj1+" solid";
        obj0.style.background=obj2;
    }
    //-->
	function btnReturn(){
	     window.open("/btsm/nnlist_user.jsp","_self");
	}
</script>
<SCRIPT LANGUAGE="JavaScript">
    <!--
    function textCounter(field, maxlimit) {
        if (field.value.length > maxlimit)
            field.value = field.value.substring(0, maxlimit);
    }
  
	
    //-->
</SCRIPT>

<TABLE cellSpacing="0" align="center" cellPadding="0" width="100%" border=0>
    <TBODY>
        <TR>
            <TD>
                <TABLE class=border cellSpacing=1 cellPadding=2 width="80%" align="center" border="0">
                    <FORM name="Jz_myform" action="ser_users" method="post">
                        <!--添加数据表单开始cs.jsp-->
                        <TBODY id=Tabs>
                            <TR class=tdbg>
                                <TD class=tdbg5 width=169 height="26">用户名：</TD>
                                <TD class=tdbg5  height="26">
									<input type="text" name="T1" id="sjidxid" size="20" maxlength="12" onBlur="checkQuote(this.value,this)" style="width:200px;">                              
									</TD>
                                <TD class=tdbg5 height="26">&nbsp;</TD>
                                <TD class=tdbg5  height="26">&nbsp;</TD>
                            </TR>
                            <TR class=tdbg>
                                <TD class=tdbg5 height="26">密码：</TD>
                                <TD class=tdbg5 ><input type="password" name="T1" id="pwdConfirma" size="20" maxlength="12" onBlur="checkQuote(this.value,this)" style="width:200px;">
								</TD>
                                <TD class=tdbg5 height="26">确认密码：</TD>
                                <TD class=tdbg5 ><input type="password" name="pwdConfirmb" id="pwdConfirmb" size="20" maxlength="12" onBlur="checkQuote(this.value,this)" style="width:200px;"></TD>
                            </TR>
                            <tr class=tdbg>
                                <TD class=tdbg5 height="26">选择用户组：</TD>
                                <TD class=tdbg5 > <select name="userGroup" id="userGroupID" style="width:200px;"/>                                </TD>
                                <TD class=tdbg5 height="26">皮肤：</TD>
                                <TD class=tdbg5 > <input type="text" name="T1" size="20" maxlength="11" style="width:200px;">                                </TD>
                            </tr>
                            <tr class=tdbg>
                                <TD class=tdbg5 width=169 height="18">真实姓名：</TD>
                                <TD class=tdbg5  height="18"> <input type="text" name="T1" size="20" style="width:200px;"></TD>
                                <TD class=tdbg5 width="145" height="18">联系电话：</TD>
                                <TD class=tdbg5  height="18"><input type="text" name="T1" size="20" maxlength="20" onBlur="checkQuote(this.value,this)" style="width:200px;"></TD>
                            </tr>
                            <tr class=tdbg>
                                <TD class=tdbg5 width=169 height="18">身份证号：</TD>
                                <TD class=tdbg5  height="18"> <input type="text" name="T1" size="20" style="width:200px;"></TD>
                                <TD class=tdbg5 width="145" height="18">家庭住址：</TD>
                                <TD class=tdbg5  height="18"><input type="text" name="T1" style="width:200px;"></TD>
                            </tr>							
							<tr class=tdbg>
                                <TD class=tdbg5 width=169 height="18">能否登录：</TD>
                                <TD height="18" class=tdbg5 >
                                     <select name="selectDropDown" style="width:200px;">
										<option value="no">禁止</option>
										<option value="yes">允许</option> 
									</select>
								</TD>
                            </tr>							

                            <input type="hidden" name="T1" value="">
                            <TR class=tdbg>
                                <TD class=tdbg5 height="51" colspan="4">
                                    <p align="center">
                                    <%
            String jspName = request.getRequestURI();
            jspName = jspName.substring(jspName.lastIndexOf("/") + 1);
                                    %>

                      <input type="hidden" name="filesnames" value=<%=jspName%>>
  					  <input type="hidden" name="seraction" value="seradd">

                                    <input type="submit" value="保存" name="JzB1" style="width: 72; height: 25" class=tx_button onMouseOver="tst(this,'blue','#ffffff')" onMouseOut="tst(this,'black','#e8e7fe')">
                                    &nbsp;&nbsp;&nbsp;&nbsp;
                                    <input type="reset" value="重置" name="JzB2" style="width: 72; height: 25" class=tx_button onMouseOver="tst(this,'blue','#ffffff')" onMouseOut="tst(this,'black','#e8e7fe')">
                                </TD>
                            </TR>
                        </TBODY>
                    </FORM>
        <% 
			mypage.dbConClose();
        %>
                </TABLE>
</TD></TR></TBODY></TABLE>



<SCRIPT LANGUAGE="JavaScript">
    
	JSystemWeb.getRolesForOptions(proccessthree); 
	function proccessthree(data){ 
		DWRUtil.removeAllOptions('userGroup');
		if(data!=null){
			DWRUtil.addOptions('userGroup',data);
		}else{
			DWRUtil.addOptions('userGroup',['Nothing Data...']);
		}
    }

	
	 
	
    //-->
</SCRIPT>


</BODY></HTML>